<script>
		$('#dob').datetimepicker({
			format: 'd MM yyyy',  //format: 'yyyy-MM-dd hh:mm:ss' either one works     
			language: 'en',
			pick12HourFormat: false,
			startView: 4,
			endDate: 'd',
			minView: 2,
			autoclose: 1,
			forceParse: 1,
			todayBtn: 0
		  });
</script>
<script>
		$('#start').datetimepicker({
			format: 'd MM yyyy',  //format: 'yyyy-MM-dd hh:mm:ss' either one works     
			language: 'en',
			pick12HourFormat: false,
			startView: 4,
			endDate: 'd',
			minView: 2,
			autoclose: 1,
			forceParse: 1,
			todayBtn: 0
		  });
</script>
<script>
		$('#end').datetimepicker({
			format: 'd MM yyyy',  //format: 'yyyy-MM-dd hh:mm:ss' either one works     
			language: 'en',
			pick12HourFormat: false,
			startView: 4,
			endDate: 'd',
			minView: 2,
			autoclose: 1,
			forceParse: 1,
			todayBtn: 0
		  });
</script>
<?php
$this->Html->addCrumb('Employee List','/Employees');
$this->Html->addCrumb($this->Form->value('Employee.e_fname').' '.$this->Form->value('Employee.e_lname'),'/Employees/view/'.$this->Form->value('Employee.e_id'));
$this->Html->addCrumb('Edit');
?>
<div class="employees form">
<?php echo $this->Form->create('Employee',array('enctype'=>'multipart/form-data')); ?>
	<fieldset>
		<legend><?php echo __('Edit Employee'); ?></legend>
	<?php
		echo $this->Form->input('e_id');
		echo $this->Form->input('e_fname',array(
			'label' => array('text' =>'First Name', 'class'=>'control-label'),
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror'))
		);
		echo $this->Form->input('e_lname',array(
			'label' => array('text' =>'Last Name', 'class'=>'control-label'),
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		echo $this->Form->input('e_homephone',array(
			'label' => array('text' =>'Home Phone', 'class'=>'control-label'),
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		echo $this->Form->input('e_mobilephone',array(
			'label' => array('text' =>'Mobile', 'class'=>'control-label'),
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		echo $this->Form->input('e_email',array(
			'label' => array('text' =>'Email', 'class'=>'control-label'),
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		echo $this->Form->input('e_taxfile',array(
			'label' => array('text' =>'TFN', 'class'=>'control-label'),
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		?>		
		<div class="control-group">
        <div class="input-append date datetime">
            <?php echo $this->Form->input('e_dob',array('type' => 'text','div' => false, 'label' => array('text' =>'Date of Birth', 'class'=>'control-label'), 'wrapInput' => false));?>
				<span class="add-on"><i class="icon-calendar"></i></span>
			</div>
		</div>
		<?php
		echo $this->Form->input('e_nextOK',array(
			'label' => 'Next of Kin',
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		echo $this->Form->input('EmployeeJobLvl',array(
			'options' => $jobLvls,
			'label' => array('text' =>'Job Level', 'class'=>'control-label'),
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		echo $this->Form->input('EmployeeJobType',array(
			'options' => $jobTypes,
			'label' => array('text' =>'Job Type', 'class'=>'control-label'),
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		
		echo $this->Form->input('EmployeeJobStatus',array(
			'options' => $jobStatuses,
			'label' => array('text' =>'Status', 'class'=>'control-label'),
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		echo $this->Form->file('e_cv', array(
			'label' => 'CV'));
		
		?>
		<div class="control-group">
        <div class="input-append date datetime"">
            <?php echo $this->Form->input('e_dateStart',array('type' => 'text','div' => false, 'label' => array('text' => 'Date Employed', 'class'=>'control-label'), 'wrapInput' => false));?>
				<span class="add-on"><i class="icon-calendar"></i></span>
			</div>
		</div>
		
		<div class="control-group">
        <div class="input-append date datetime">
            <?php echo $this->Form->input('e_dateEnd',array('type' => 'text','div' => false, 'label' => array('text' => 'Date End', 'class'=>'control-label'), 'wrapInput' => false));?>
				<span class="add-on"><i class="icon-calendar"></i></span>
			</div>
		</div>
		
	</fieldset>
<?php echo $this->Form->end(__('Submit')); ?>
</div>
